package biology;

import tool.weapon;

public class personMonk {
    private String name;
    private int healthPoint;
    private weapon carryingWeapons;
    private  int finalJudgeWhetherToWin=0;

    public personMonk( weapon carryingWeapons ) {
        this.name = "王铁柱";
        this.healthPoint = 20;
        this.carryingWeapons = carryingWeapons;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public int getHealthPoint() {
        return Math.max(healthPoint,0);
    }
    public void setHealthPoint(int healthPoint) {
        this.healthPoint = healthPoint;
    }

    public weapon getCarryingWeapons() {
        return carryingWeapons;
    }

    public void setCarryingWeapons(weapon carryingWeapons) {
        this.carryingWeapons = carryingWeapons;
    }


    public int getFinalJudgeWhetherToWin() {
        return finalJudgeWhetherToWin;
    }
    public void setFinalJudgeWhetherToWin(int finalJudgeWhetherToWin) {
        this.finalJudgeWhetherToWin = finalJudgeWhetherToWin;
    }
}
